package cn.yh.springbootjwt.service;

import cn.yh.springbootjwt.domain.query.ShoppingCartUpdate;
import cn.yh.springbootjwt.domain.vo.ShoppingCartListVo;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IShoppingCartService {
    /**
     * 添加购物车
     * @param productId 商品id
     * @return 返回购物车数量
     */
    Integer addShoppingCart(Long productId);

    List<ShoppingCartListVo> selectShoppingCartList();


    int updateShoppingCart(ShoppingCartUpdate shoppingCartUpdate);

    int deleteShoppingCart(Long shoppingCartId);

}
